<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>分割按钮</title>
<link rel="stylesheet" type="text/css" href="${pageContext.servletContext.contextPath}/jquery-easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="${pageContext.servletContext.contextPath}/jquery-easyui/themes/icon.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-easyui/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
$(document).ready(function () {
  $("#edit").splitbutton({
    menu: '#splitbutton',
    iconCls: 'icon-man',
    //鼠标划过按钮时显示菜单所持续的时间，默认值为100（单位：毫秒）
    duration: 200
  });
  //返回菜单按钮的属性对象
  console.log($("#edit").menubutton("options"));
});
</script>
</head>
<body>
  <a href="javascript:void(0)" id="edit">登录</a>
  <div id="splitbutton" style="width: 100px">
    <div data-options="iconCls: 'icon-ok'">注册</div>
    <div data-options="iconCls: 'icon-help'">找回密码</div>
  </div>
</body>
</html>